package com.bite.order.config;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.alibaba.csp.sentinel.slots.block.flow.FlowException;
import com.bite.order.model.OrderInfo;

public class ExceptionHandlerUtil {
    public static OrderInfo handleException(Integer orderId, BlockException e) {
        System.out.println("进⼊异常处理⽅法");
        if (e instanceof FlowException) {
            return new OrderInfo();
        }
        return new OrderInfo();
    }

}
